package cn.com.guage.dtm.scanner;

import java.util.Scanner;

public class ScannerHasNextLineExample {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一些文本，每行一个句子：");
        while (scanner.hasNextLine()) {
            String line = scanner.nextLine();
            System.out.println("你输入的句子是：" + line);
        }
        scanner.close();
    }
}